#define  _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
//void init(int arr[])
//{
//	int i = 0;
//	for (i = 0; i < 10; i++)
//	{
//		arr[i] = 0;
//	}
//}


void reverse(int arr[],int poor)
{
	int p = 0;
	for (p = 0; p < poor - 1; p++)
	{
		int k = 0;
		for (k = 0; k < poor-1-p ; k++)
		{
			if (arr[k] < arr[k + 1])
			{
				int tmp = 0;
				tmp = arr[k];
				arr[k] = arr[k + 1];
				arr[k + 1] = tmp;
			}
		}
	}
}

void print(int arr[])
{
	int j = 0;
	for (j = 0; j < 10; j++)
	{
		printf("%d ", arr[j]);
	}
}

int main()
{
	int arr[10] = { 1,4,5,6,7,9,2,3,8,10};
	/*init(arr);*/

	int poor = sizeof(arr) / sizeof(arr[0]);
	reverse(arr,poor );
	print(arr);
	return 0;
}